import type { Metadata } from 'next'

import { NO_INDEX_PAGE } from '@/constants/seo.constants'

import { ClientDetail } from '@/app/d/clients/[id]/ClientDetail'

export async function generateMetadata({
	params
}: {
	params: { id: string }
}): Promise<Metadata> {
	return {
		title: `Клиент #${params.id}`,
		...NO_INDEX_PAGE
	}
}

export default function Client({ params }: { params: { id: string } }) {
	return <ClientDetail id={params.id} />
}
